/**
 * Perform login validations
 */
function setFocus() {
		document.login.userId.select();
		document.login.userId.focus();
	}
	function validation() {

		var userid = document.forms["login"]["userId"].value;
		var passwd = document.forms["login"]["passwd"].value;

		if (userid == "") {
			document.getElementById('user').innerHTML = 'UserName can not be empty';

			return false;
		}
		if (userid.length<6 || userid.length>10) {
			document.getElementById('user').innerHTML = ' Invalid Username';
			return false;
		}
		if (passwd == "") {
			document.getElementById('user').innerHTML = 'Password can not be empty';
			return false;
		}
		if (passwd.length<6 || passwd.length>10) {
			document.getElementById('user').innerHTML = 'Invalid Password';
			return false;
		}

		//document.getElementById('val').innerHTML='user valid';
		document.login.submit();
		return true;
	}